﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContactosBD.ascx.cs" Inherits="MartinsNeves.usercontrols.ContactosBD" %>

<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    CellPadding="4" DataKeyNames="id" AllowPaging="True" PageSize="20" 
    AllowSorting="True" DataSourceID="EntityDataSource1" 
    ForeColor="#333333" GridLines="None" Font-Bold="True" Font-Size="8pt">
    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    <Columns>
        <asp:BoundField DataField="id" HeaderText="Nº" ReadOnly="True" 
            SortExpression="id" />
        <asp:BoundField DataField="nome" HeaderText="Nome" SortExpression="nome" />
        <asp:BoundField DataField="email" HeaderText="Email" SortExpression="email" />
        <asp:BoundField DataField="telefone" HeaderText="Telefone" 
            SortExpression="telefone" />
        <asp:BoundField DataField="mensagem" HeaderText="Mensagem" 
            SortExpression="mensagem" />
        <asp:BoundField DataField="ip" HeaderText="IP" SortExpression="ip" />
        <asp:BoundField DataField="dataHora" HeaderText="Dia & Hora" 
            SortExpression="dataHora" />
        <asp:BoundField DataField="site" HeaderText="Site" SortExpression="site" />
    </Columns>
    <EditRowStyle BackColor="#999999" />
    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
    <SortedAscendingCellStyle BackColor="#E9E7E2" />
    <SortedAscendingHeaderStyle BackColor="#506C8C" />
    <SortedDescendingCellStyle BackColor="#FFFDF8" />
    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
</asp:GridView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" 
    ConnectionString="name=MartinsNevesEntities"  
    DefaultContainerName="MartinsNevesEntities" EnableDelete="True" 
    EnableFlattening="False" EnableUpdate="True" EntitySetName="mn_contactos">
</asp:EntityDataSource>

